package yyy.ab.modules.quartz.task;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * 用于实现任务管理的基类
 */
public abstract class BaseJob implements Job {

    private String parameter = "";

    /**
     * 任务执行方法
     *
     * @param context
     * @throws JobExecutionException
     */
    public abstract void execute(JobExecutionContext context) throws JobExecutionException;

    public String getParameter() {
        return parameter;
    }

    public void setParameter(String parameter) {
        this.parameter = parameter;
    }
}
